<template>

  <mk-page type="modal-view" title="modal">
    <div slot="content">
      <div class="demo-modal ">
        <mk-button @click="test1" class="text-info" size="large">点击测试</mk-button>
      </div>
    </div>
  </mk-page>
</template>
<script>
import MkPage from '../components/mk-page.vue'
export default {
  name: 'demo-modal',
  data() {
    return {}
  },
  mounted() {},
  components: {
    MkPage
  },
  watch: {},
  methods: {
    test1() {
      let self = this
      self.$showdownModal(
        {
          message: 'modal 测试！',
          leftBtnTxt: '确定',
          rightBtnTxt: '取消'
        },
        function() {
          console.log('这是回调')
        }
      )
    }
  }
}
</script>
